package com.gmj.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author gmj
 * @since 2022-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_student")
public class Student implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "密码")
    private String pwd;
    @Excel(name = "性别",replace = {"男_1","女_0"})
    private Integer gender;
    @Excel(name = "电话")
    private String tel;
    @Excel(name = "学号")
    private String stuNo;
    @Excel(name = "班级编号")
    private Integer cid;
    @TableField(exist = false)
    private Class clazz;
}
